<#include "/ftl/front/common/_layout.html"/>
<@html title="JFinal社区 - Top100 积分榜" description="JFinal社区 - Top100 积分榜" sidebar_user_info="show" sidebar_create="show" sidebar_friendlylinks="show">
<div class="jf_panel">
    <div class="jf_header">
        <ul class="jf_breadcrumb">
            <li><a href="${baseUrl!}/">首页</a></li>
            <li class="active">Top100 积分榜</li>
        </ul>
    </div>
    <div class="jf_inner">
        <table class="table table-striped">
            <thead>
            <tr>
                <th>#</th>
                <th>用户名</th>
                <th style="min-width: 45px;">积分</th>
                <th style="min-width: 58px;">主题数</th>
                <th style="min-width: 58px;">评论数</th>
            </tr>
            </thead>
            <tbody>
            <#list top100 as user>
                <tr>
                    <td style="vertical-align: middle;padding:4px;">${user_index + 1}</td>
                    <td style="vertical-align: middle;padding:4px; max-width: 150px;text-overflow: ellipsis;white-space: nowrap;overflow: hidden;">
                        <a href="${baseUrl!}/user/${user.id!}"><img src="${user.avatar!}" width="30"></a>
                        &nbsp;${user.nickname!}
                    </td>
                    <td style="vertical-align: middle;padding:4px;">${user.score!}</td>
                    <td style="vertical-align: middle;padding:4px;">${user.topic_count!}</td>
                    <td style="vertical-align: middle;padding:4px;">${user.reply_count!}</td>
                </tr>
            </#list>
            </tbody>
        </table>
    </div>
</div>
</@html>